<template>
	<view class="my-container">
		<my-login v-if="!token"></my-login>

		<my-userinfo v-else></my-userinfo>
	</view>
</template>

<script>
	import bage from '@/mixins/tabbar-bage.js'
	export default {
		data() {
			return {

			};
		},
		mixins: [bage],
		computed: {
			token() {
				return this.$store.state.User.token
			}
		}
	}
</script>

<style lang="scss">
	page,
	.my-container {
		height: 100%;
	}
</style>
